<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户注册</title>

    <link href="./css/login.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">

            function regiestClick() {
            var name=document.login.username.value;
            var pwd=document.login.password.value;
            if(name==null||name.length==0){
                alert("用户名不能为空！");
                return;
            }
            if(pwd==null||pwd.length==0){
                alert("手机号不能为空！");
                return;
            }
            document.login.submit();
        }
    </script>

</head>
<body>
    <table class="login_tb1">
        <tr align="center" valign="middle">
            <td height="100%">
                <table class="login_tb2" cellSpacing=0 cellPadding=0 border=0
                       align="center"
                >
                    <tr valign="middle">
                        <td class="login_td1" colSpan=2><font face="黑体" size="4px"
                                                              color="#196ed1"
                        >网上书店系统-用户注册</font></td>
                    </tr>
                    <tr>
                        <td width="203"><img height="200" width="404"
                                             src="/images/water_dot.png" alt="此处显示登录图片"
                        /></td>
                        <td class="login_td2">
                            <form action="LoginServlet" name="login" method="post">
                                <table>
                                    <tr>
                                        <td width="66" height="20" class="login_td">登录名：</td>
                                        <td width="115" height="20" class="login_td"><input
                                                class="login_input" type="text" name="username"
                                        ></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td height="20" class="login_td">手机号码：</td>
                                        <td height="20" class="login_td"><input
                                                type="password" name="password" class="login_input"></td>
                                        <td></td>
                                    </tr>

                                    <tr>
                                        <td width="66" height="20" class="login_td">请输入密码：</td>
                                        <td width="115" height="20" class="login_td"><input
                                                class="login_input" type="text" name="username"
                                        ></td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td height="20" class="login_td">请确认密码：</td>
                                        <td height="20" class="login_td"><input
                                                type="password" name="password" class="login_input"></td>
                                        <td></td>
                                    </tr>

                                    <tr>
                                        <td height="20" colspan="2" align="center"><input
                                                type="reset" value="重置" class="login_button"
                                        />   <input type="button" value="注册"
                                                    class="login_button" onClick="regiestClick()"
                                        />  </td>
                                        <td class="login_td" align="left" width=71><a
                                                href="login"
                                        ></a></td>
                                    </tr>
                                </table>
                            </form>
                        </td>
                    </tr>
                    <tr>
                        <td colSpan=2
                            style="background-image: url(http://www.stourweb.com/ueditor/php/upload/image/20171114/1510643165868665.png)"
                            height=56 align="center" class="login_td"
                        >版权所有</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

</body>
</html>